<template>
  <div class="second-page">
    <CarDetail
      v-if="chooseTitle == '实时监控'"
      :title="this.$route.params.title"
      :data="this.$route.params.data"
    />
  </div>
</template>

<script>
import CarDetail from "./carDetail";
export default {
  data() {
    return {
      chooseTitle: "",
    };
  },
  components: {
    CarDetail,
  },
  methods: {},
  // computed: {
  //   getTitle() {
  //     return this.$store.getters.getTitle[
  //       this.$store.getters.getTitle.length - 1
  //     ];
  //   },
  // },
  // watch: {
  //   getTitle(news, old) {
  //     this.chooseTitle = news;
  //     this.judgeContent();
  //     this.judgeShow();
  //   },
  // },
  mounted() {
    this.chooseTitle = this.$route.params.nextTitle;
    
  },
};
</script>

<style lang='scss' scoped>
.second-page {
}
</style>